using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmRcApplicant")]
    public class RcApplicant
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "AppId", ResourceType = typeof(Resources.RcApplicantsResource))]
        public int AppId { get; set; }

		[ForeignKey("NamePrefix")]
		[DataMember, Display(Name = "NamePrefixId", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<int> NamePrefixId { get; set; }

		[DataMember, Display(Name = "FirstName", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string FirstName { get; set; }

		[DataMember, Display(Name = "LastName", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string LastName { get; set; }

		[DataMember, Display(Name = "FirstNameEng", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string FirstNameEng { get; set; }

		[DataMember, Display(Name = "LastNameEng", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string LastNameEng { get; set; }

		[ForeignKey("Gender")]
		[DataMember, Display(Name = "GenderId", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<int> GenderId { get; set; }

		[ForeignKey("Religion")]
		[DataMember, Display(Name = "ReligionId", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<int> ReligionId { get; set; }

		[ForeignKey("RaceNat")]
		[DataMember, Display(Name = "RaceNatId", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<int> RaceNatId { get; set; }

		[ForeignKey("Nat")]
		[DataMember, Display(Name = "NatId", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<int> NatId { get; set; }

		[DataMember, Display(Name = "BirthDate", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<System.DateTime> BirthDate { get; set; }

		[ForeignKey("AppStatus")]
		[DataMember, Display(Name = "AppStatusId", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<int> AppStatusId { get; set; }

		[DataMember, Display(Name = "Citizen", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string Citizen { get; set; }

		[DataMember, Display(Name = "TaxPayer", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string TaxPayer { get; set; }

		[DataMember, Display(Name = "Social", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string Social { get; set; }

		[DataMember, Display(Name = "Official", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string Official { get; set; }

		[DataMember, Display(Name = "BloodGroup", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string BloodGroup { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.RcApplicantsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.RcApplicantsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual MasNamePrefix NamePrefix { get; set; }

		public virtual MasGender Gender { get; set; }

		public virtual MasReligion Religion { get; set; }

        public virtual MasNationality RaceNat { get; set; }

		public virtual MasNationality Nat { get; set; }

		public virtual PsCommand AppStatus { get; set; }

    }
}